﻿using Deferred.Library.Scene;
using Microsoft.Xna.Framework.Graphics;

namespace Deferred.Editor.Scene
{
    public class AmbientLightWrapper
    {
        public AmbientLight AmbientLight { get; private set; }

        public byte ColorR { get { return AmbientLight.Color.R; } set { AmbientLight.Color = new Color(value, AmbientLight.Color.G, AmbientLight.Color.B); } }
        public byte ColorG { get { return AmbientLight.Color.G; } set { AmbientLight.Color = new Color(AmbientLight.Color.R, value, AmbientLight.Color.B); } }
        public byte ColorB { get { return AmbientLight.Color.B; } set { AmbientLight.Color = new Color(AmbientLight.Color.R, AmbientLight.Color.G, value); } }

        public AmbientLightWrapper(AmbientLight ambientLight)
        {
            AmbientLight = ambientLight;
        }
    }
}
